import httpProxy from "../utils/request";
import { URL } from "../config";
export async function pageMessage(data: any) {
  return await httpProxy({
    url: `/admin/message/info/page`,
    method: "POST",
    data,
  });
}

export async function addMessage(data: any) {
  return await httpProxy({
    url: `/admin/message/info/add`,
    method: "POST",
    data,
  });
}

export async function readMessage(data: any) {
  return await httpProxy({
    url: `/admin/message/info/readMessage`,
    method: "POST",
    data,
  });
}

export async function deleteMessage(data: any) {
  return await httpProxy({
    url: `/admin/message/info/delete`,
    method: "POST",
    data,
  });
}
